#!/bin/bash

# 变量定义
BUILD_DIR="build"
EXECUTABLE="AStarPathfinding"

# 创建构建目录
echo "Creating build directory..."
mkdir -p $BUILD_DIR

# 进入构建目录
cd $BUILD_DIR

# 运行 cmake 配置
echo "Running cmake..."
cmake ..

# 编译项目
echo "Running make..."
make

# 打印构建完成信息
echo "Build completed!"

